package com.felix.spider.rep;

import com.felix.spider.domain.TrainManage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author felix.ma
 * @create 2018-06-21 9:26
 */
public interface TrainManageRep
    extends JpaRepository<TrainManage, Integer>, JpaSpecificationExecutor<TrainManageRep> {

  List<TrainManage> findByBureauIdAndDeptIdAndPoliceTeamIdAndTrainNumber(
      String bureauI, String deptId, String policeTeamId, String trainNumber);
}
